package com.probiz.estore.common.model.content;

import com.probiz.estore.common.model.content.base.ContentMediaTbl;

/**
 * Model class for ContentMedia. Add not database mapped fileds in this class.
 */
public class ContentMedia extends ContentMediaTbl {
	public static final Integer DEFAULT_SORTORDER = Integer.valueOf(1000);
	public static final Short TYPE_IMAGE = Short.valueOf((short) 0);
	public static final Short TYPE_ACCESSORY = Short.valueOf((short)1);
  	/**
	 * Default Empty Constructor for class ContentMedia
	 */
	public ContentMedia () {
		super();
	}
	
	/**
	 * 定义实体的业务名取值； contentMediaName
	 * 必须手工完成这个部分，否则编译不通过。
	 */
	public String getContentMediaName () {
		if (contentMediaId == null)
	        return "";
	    else
			//返回一个指定有业务意义的属性值;
			//如：product的VO就用product.productName
	        return this.getContentMediaId().toString();
	}
	
	/**
	 * Default Key Fields Constructor for class ContentMedia
	 */
	public ContentMedia (
		 Integer in_contentMediaId
		) {
		super (
		  in_contentMediaId
		);
	}

}
